Functions List


Operations with Points


distance

The function distance calculates the distance between two positions in space.

Parameters:

p1 – First point
p2 – Second point

Syntax:

(distance p1 p2)

Example:

> (distance (xyz 0 0 0) (xyz 2 4 6))
7.483314773547883

> (distance (pol 2 0) (sph 5 pi/2 pi/3))
5.385164807134504
Top